home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2001 January / PC-WELT 01-2001.ISO / software / linux / netscap6 / xpi / browser.xpi / bin / chrome / toolkit.jar / content / global / printdialog.xul < prev    next >
Encoding:
Extensible Markup Language  |  2000-08-08  |  5.1 KB  |  127 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
  2.  
  3. <!--
  4. The contents of this file are subject to the Netscape Public
  5. License Version 1.1 (the "License"); you may not use this file
  6. except in compliance with the License. You may obtain a copy of
  7. the License at http://www.mozilla.org/NPL/
  8.  
  9. Software distributed under the License is distributed on an "AS
  10. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. implied. See the License for the specific language governing
  12. rights and limitations under the License.
  13.  
  14. The Original Code is Mozilla Communicator client code, released
  15. March 31, 1998.
  16.  
  17. The Initial Developer of the Original Code is Netscape
  18. Communications Corporation. Portions created by Netscape are
  19. Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20. Rights Reserved.
  21.  
  22. Contributor(s): Masaki Katakai <katakai@japan.sun.com>
  23.                 Dan Rosen <dr@netscape.com>
  24. -->
  25.  
  26. <?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
  27. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  28. <!DOCTYPE window SYSTEM "chrome://global/locale/printdialog.dtd">
  29.  
  30. <window xmlns:html="http://www.w3.org/1999/xhtml"
  31.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  32.   id="printDialog"
  33.   onload="onLoad();"
  34.   onunload="onUnload();"
  35.   title="&printDialog.title;"
  36.   debug="false"
  37.   class="dialog"
  38.   align="vertical"
  39.   persist="screenX screenY"
  40.   screenX="24" screenY="24">
  41.  
  42.   <script language="JavaScript" src="chrome://global/content/printdialog.js"/>
  43.  
  44.   <grid>
  45.     <columns><column/><column flex="1"/></columns>
  46.     <rows>
  47.       <row>
  48.         <text class="label" value="&printTo.label;" flex ="1"/>
  49.           <radiogroup id="destGroup" orient="horizontal">
  50.             <radio group = "destGroup" id = "printerRadio" value = "&printerRadio.label;"
  51.                                 oncommand = "doPrintToFile( false );"/>
  52.             <radio group = "destGroup" id = "fileRadio" value = "&fileRadio.label;"
  53.                                 oncommand = "doPrintToFile( true );"/>
  54.           </radiogroup>
  55.       </row>
  56.       <row>
  57.         <text id="cmdLabel" class="label" value="&cmdInput.label;" flex ="1" align="left"/>
  58.         <textfield id="cmdInput" flex ="1"/>
  59.       </row>
  60.       <row valign="baseline">
  61.         <text id="fileLabel" class="label" value="&fileInput.label;"/>
  62.         <box>
  63.           <textfield id="fileInput" flex ="1"/>
  64.           <button id="chooseFile" value = "&chooseButton.label;" oncommand = "onChooseFile()"/>
  65.         </box>
  66.       </row>
  67.       <row>
  68.         <text class="label" value="&reverseGroup.label;" flex ="1"/>
  69.         <radiogroup id="reverseGroup" orient="horizontal">
  70.           <radio group = "reverseGroup" id = "firstRadio" value = "&firstRadio.label;" />
  71.           <radio group = "reverseGroup" id = "lastRadio" value = "&lastRadio.label;" />
  72.         </radiogroup>
  73.       </row>
  74.       <row>
  75.         <text class="label" value="&colorGroup.label;" flex ="1"/>
  76.         <radiogroup id="colorGroup" orient="horizontal">
  77.           <radio group = "colorGroup" id = "grayRadio" value = "&grayRadio.label;" />
  78.           <radio group = "colorGroup" id = "colorRadio" value = "&colorRadio.label;"/>
  79.         </radiogroup>
  80.       </row>
  81.       <row>
  82.         <text class="label" value="&paperGroup.label;" flex ="1"/>
  83.         <radiogroup id="paperGroup" orient="vertical">
  84.           <radio group = "paperGroup" id = "letterRadio" value = "&letterRadio.label;"/>
  85.           <radio group = "paperGroup" id = "legalRadio" value = "&legalRadio.label;"/>
  86.           <radio group = "paperGroup" id = "exectiveRadio" value = "&exectiveRadio.label;"/>
  87.           <radio group = "paperGroup" id = "a4Radio" value = "&a4Radio.label;" />
  88.         </radiogroup>
  89.       </row>
  90.       <row>
  91.         <text class="label" value="&marginInput.label;" flex ="1"/>
  92.     <box orient="horizontal">
  93.       <box orient="horizontal">
  94.             <text class = "label" id = "topLabel" for = "topInput" value = "&topInput.label;" />
  95.             <textfield id = "topInput" style = "width:5em;" onkeyup="checkValid(this.id)"/>
  96.           </box>
  97.           <box orient="horizontal">
  98.             <text class = "label" id = "bottomLabel" for = "bottomInput" value = "&bottomInput.label;" />
  99.             <textfield id = "bottomInput" style = "width:5em;" onkeyup="checkValid(this.id)"/>
  100.           </box>
  101.           <box orient="horizontal">
  102.             <text class = "label" id = "leftLabel" for = "leftInput" value = "&leftInput.label;" />
  103.             <textfield id = "leftInput" style = "width:5em;" onkeyup="checkValid(this.id)"/>
  104.           </box>
  105.           <box orient="horizontal">
  106.             <text class = "label" id = "rightLabel" for = "rightInput" value = "&rightInput.label;" />
  107.             <textfield id = "rightInput" style = "width:5em;" onkeyup="checkValid(this.id)"/>
  108.           </box>
  109.         </box>
  110.       </row>
  111.     </rows>
  112.   </grid>
  113.  
  114.   <!-- used to store the print -->
  115.   <foo style="display:none;" id="printButton" value="&printButton.label;"/>
  116.  
  117.   <!-- used to store the print -->
  118.   <foo style="display:none;" id="fpDialog" value="&fpDialog.title;"/>
  119.  
  120.   <separator/>
  121.  
  122.   <!-- Places to overlay common dialog buttons and keyset -->
  123.   <box id="okCancelButtons"/>
  124.   <keyset id="keyset"/>
  125.  
  126. </window>
  127.